﻿using System;
using System.Collections;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyworth.CRM.Service.Entity;

namespace Skyworth.CRM.Service.IBLL
{
    public interface IRoleBLL
    {
        void Add(Roles model);
        void Update(Roles model);
        DataTable Query(string strWhere);
        DataTable Query(string strWhere, Hashtable parameterValue);
        Roles GetRole(int roleId);

        void Delete(int roleId);

        Boolean IsExisit(string roleName,int roleId,Boolean needToIncludeRoleID);

        void SetRoleAuthority(int roleId, int pageId, Dictionary<string, int> functionList);

        
    }
}
